package cn.ren.hai.core.error;

import lombok.Getter;

/**
 * @author: 王道
 * @Date: 2021/7/30 18:08
 * @Description:
 */
@Getter
public class RhException extends Exception {

    private final String message;

    private Throwable throwable;

    public RhException(String message){
        this.message = message;
    }

    public RhException(String message,Throwable throwable){
        this.message = message;
        this.throwable = throwable;
    }

    public RhException(Throwable throwable){
        this.throwable = throwable;
        this.message = "";
    }

}
